<?php
/**
 * TOP API: taobao.items.list.get request
 * 
 * @author auto create
 * @since 1.0, 2012-04-17 12:36:56
 */
class ItemsListGetRequest
{
    /** 
     * 需要返回的商品对象字段。可选值：Item商品结构体中所有字段均可返回；多个字段用“,”分隔。如果想返回整个子对象，那字段为itemimg，如果是想返回子对象里面的字段，那字段为itemimg.url。
     **/
    private $fields;
    
    /** 
     * 商品数字id列表，多个num_iid用逗号隔开，一次不超过20个。
     **/
    private $numIids;
    
    private $apiParas = array();
    
    public function setFields($fields)
    {
        $this->fields = $fields;
        $this->apiParas["fields"] = $fields;
    }

    public function getFields()
    {
        return $this->fields;
    }

    public function setNumIids($numIids)
    {
        $this->numIids = $numIids;
        $this->apiParas["num_iids"] = $numIids;
    }

    public function getNumIids()
    {
        return $this->numIids;
    }

    public function getApiMethodName()
    {
        return "taobao.items.list.get";
    }
    
    public function getApiParas()
    {
        return $this->apiParas;
    }
    
    public function check()
    {
        
        RequestCheckUtil::checkNotNull($this->fields,"fields");
        RequestCheckUtil::checkNotNull($this->numIids,"numIids");
    }
}
